<?php $header=$this->action('ZfcAdmin\Controller\AdminController', 'headerAction');
	  $baseUrl = $header->headerarray['baseUrl'];
?>
<?php if(isset($_SESSION['admin'])){?>
<html>
	<center>
		<head>
			<h1>Edit Testimony</h1>
		</head><br/>
		<body>
			<form id="testimony_form" name="testimony_form" method="post" action="">
				Testimony:<textarea id="testimony_text" name="testimony_text"><? if(isset($this->textimony_details->review_text) && $this->textimony_details->review_text!=""){echo $this->textimony_details->review_text;}else{}?></textarea><br/><br/>
				<a href="<? echo $baseUrl.'admin/testimonial-lists'?>">Back</a>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" id="btn_testimony" name="btn_testimony" value="Save" onClick="return testimonyValidate('admin');"><br/>
				<input type="hidden" id="hid_testimony" name="hid_testimony" value="<? if(isset($this->textimony_details->review_id) && $this->textimony_details->review_id!=""){echo $this->textimony_details->review_id;}else{}?>">
			</form>
		</body>
	</center>
</html>
<? } else {?>
<script>
	window.location=ADMIN_BASE_URL+'admin';
</script>
<?}?>